package Lab02.Q15;

public class strsCat {
    public static void main(String[] args) {
        System.out.println(strscat(new String[]{"a", "b"}));
        System.out.println(strscat("a", "b", "e", "f", "", "dfgfhgfh"));
        System.out.println(strscat("a", "b", "c"));
    }

    public static String strscat(String... x) {
        String ans = new String("");
        for (int i = 0; i < x.length; i++) {
            ans = ans + x[i];
        }
        return ans;
    }
}
